package com.yxh.springdemo.bean;

/**
 * @Author: yuxinhang
 * @Date: 2022/6/14 16:02
 * @Description 学生类，储存学生信息
 */
public class Student {

    private String name;

    private Integer age;

    private String card;

    private Address address;

    public Student() {
    }

    public Student(String name, Integer age, String card, Address address) {
        this.name = name;
        this.age = age;
        this.card = card;
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", card='" + card + '\'' +
                ", address=" + address +
                '}';
    }
}
